/**
 * Created by luoxiaoming on 16-4-29.
 */
Ext.define("console.store.deptStore", {
    extend: 'Ext.data.Store',
    alias: 'widget.deptStore',
    autoLoad: true,
    fields: ['code','name','leader','leaderName','groupCode','groupName','status','pcode','pname'],
    proxy: {
        type: 'ajax',
        url: 'dept/loadDept',
        reader: {
            type: 'json',
            root: 'root',
            totalProperty: 'total'
        }
    }
});